package com.fg.ihr.repository;
import com.fg.ihr.domain.Department;
import com.fg.ihr.domain.Level;
import com.fg.ihr.domain.Title;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface TitleRepository extends JpaRepository<Title, Integer>,JpaSpecificationExecutor<Title> {

    List<Department> findAllByName(String name);

}
